package cn.stylefeng.guns.modular.courseversion.mapper;

import cn.stylefeng.guns.modular.courseversion.entity.CourseVersion;
import cn.stylefeng.guns.modular.courseversion.model.params.CourseVersionParam;
import cn.stylefeng.guns.modular.courseversion.model.result.CourseVersionResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 课程版本 Mapper 接口
 * </p>
 *
 * @author CHENCHEN
 * @since 2022-07-19
 */
public interface CourseVersionMapper extends BaseMapper<CourseVersion> {

    /**
     * 获取列表
     *
     * @author CHENCHEN
     * @Date 2022-07-19
     */
    List<CourseVersionResult> customList(@Param("paramCondition") CourseVersionParam paramCondition);

    /**
     * 获取map列表
     *
     * @author CHENCHEN
     * @Date 2022-07-19
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") CourseVersionParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author CHENCHEN
     * @Date 2022-07-19
     */
    Page<CourseVersionResult> customPageList(@Param("page") Page page, @Param("paramCondition") CourseVersionParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author CHENCHEN
     * @Date 2022-07-19
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") CourseVersionParam paramCondition);


    List<CourseVersionResult> showCourseVersion(Long specialtyId);
}
